package com.zdp.auth;

import cn.dev33.satoken.config.SaTokenConfig;
import cn.hutool.extra.spring.EnableSpringUtil;
import cn.hutool.json.JSONUtil;
import com.zdp.satoken.config.SaTokenConfiguration;
import com.zdp.utils.SpringUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = "com.zdp.*")
@SpringBootApplication
@EnableSpringUtil
public class AuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class, args);

        BeanService beanService = SpringUtils.getBean("beanService");
        System.out.println(beanService.getName());

        SaTokenConfiguration saTokenConfiguration = SpringUtils.getBean("saTokenConfiguration");
        System.out.println(saTokenConfiguration);
    }
}
